package com.insurance.service.impl;

import com.insurance.mapper.RefundMapper;
import com.insurance.mapper.ShopManageMapper;
import com.insurance.service.RefundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: drc
 * Date: 2020/10/29 21:02
 * Description:
 * Version: V1.0
 */
@Service
@Transactional(readOnly = false)
public class RefundServiceimpl implements RefundService {
    @Autowired(required = false)
    private RefundMapper refundMapper;
    @Override
    public List<Map> findRefund() {
        return refundMapper.findRefund();
    }

    @Override
    public int Refund(String order_number) {
        return refundMapper.Refund(order_number);
    }

    @Override
    public int Reject(String order_number, String rejectReasons) {
        return refundMapper.Reject(order_number,rejectReasons);
    }
}
